Fix local variable persistence in erc-stamp
authorF. Jason Park <jp@neverwas.me>
Wed, 31 Jan 2024 02:17:41 +0000 (18:17 -0800)
committerF. Jason Park <jp@neverwas.me>
Sat, 3 Feb 2024 01:07:14 +0000 (17:07 -0800)
commitb7cdce097003a645ae396470cfab221bf789189e
treec0658b5442202dbe089afaa505a4ee229b349da5
parentbb894845ed6a06e8b301251d62f8b4a73a09d5ea
Fix local variable persistence in erc-stamp

* etc/ERC-NEWS: Mention renaming of `erc-munge-invisible-property'.
* lisp/erc/erc-stamp.el (erc-stamp-mode, erc-stamp-disable): Remove
correct function from `erc-mode-hook'.
(erc-stamp--recover-on-reconnect): Revise doc string.
(erc-munge-invisibility-spec, erc-stamp--manage-local-options-state):
Mark former name as obsolete and rename to latter.  Don't use helper
macro meant only for local modules.  This bug originated from c68dc778
"Manage some text props for ERC insertion-hook members", which stemmed
from bug#60936.
(erc-stamp--setup, erc-hide-timestamps, erc-show-timestamps)
(erc-toggle-timestamps): Use new name for
`erc-munge-invisibility-spec'.
* lisp/erc/erc.el (erc--restore-initialize-priors): Raise error at
runtime if mode var doesn't belong to a local module.
* test/lisp/erc/erc-stamp-tests.el (erc-stamp-tests--insert-right)
(erc-timestamp-intangible--left): Use new name for
`erc-munge-invisibility-spec'.
* test/lisp/erc/erc-tests.el (erc--refresh-prompt): Shadow
`erc-last-input-time'.
(erc--restore-initialize-priors): Add error form to expected
expansion, and skip test on Emacs 27.
* test/lisp/erc/resources/erc-scenarios-common.el
(erc-scenarios-common--make-bindings): Shadow `erc-last-input-time'.
etc/ERC-NEWS
lisp/erc/erc-stamp.el
lisp/erc/erc.el
test/lisp/erc/erc-stamp-tests.el
test/lisp/erc/erc-tests.el
test/lisp/erc/resources/erc-scenarios-common.el